package test1230am;

public class Test02 {
    public static void main(String[] args) {

        // (2)打印3个变量中的最大值
        int a = 2;
        int b = 3;
        int c = 5;
        int max;
        if(a>=b && a>=c){
            max = a;
        }else if(b >=a && b>=c){
            max = b;
        }else {
            max = c;
        }
        System.out.println("三个数中的最大值是: " + max);
    }
}
